import Vue from 'vue'
import router from "@/router/router"
let that = Vue.prototype
export default {
    configData:{
        axiosConfig:{
            // axios 配置
            baseUrl:'/',
            timeout:6000,
        },
    },
    Toast:(msg)=>{
      console.log("msg", msg)
    },
    goUrl:(url)=>{
      if(url){
        router.push({path:url})
      }else{
        that.$message.error('路由参数错误')
      }
    },
    backPage:()=>{
      router.go(-1)
    }
}